<template>
  <div>{{ label }}</div>
</template>

<script>
export default {
  formComponents: "map",
  name: "ElCustomMap",
  props: {
    row: [Object],
    rowKey: [String]
  },
  data() {
    return {
      label: "无",
    }
  },
  created() {
    let temp = this.row[this.rowKey];
    if ((typeof temp) === "string") {
      temp = temp.split(",");
    }
    if (temp instanceof Array) {
      this.label = temp[temp.length - 1]
    }
  }
}
</script>

<style scoped>

</style>
